package operator;

import book.BookList;

/**
 * Version: 1.1
 * Author: TangJun
 * Date: 2024-07-18
 */
public class DisplayOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("展示图书信息");
        for (int i = 0; i < bookList.getSize(); i++) {
            System.out.println(bookList.getPos(i));
        }
    }
}
